﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace InventoryManager
{
    public partial class InsertSellerInfoForm : Form
    {
        public InsertSellerInfoForm(string ownerOrderID, string ownerDate, 
            string sellerOrderID, string sellerDate)
        {
            InitializeComponent();

            OwnerOrderIDLabel.Text = ownerOrderID;
            OwnerDateLabel.Text = ownerDate;

            SellerOrderIDTextBox.Text = sellerOrderID;

            if (sellerDate == "")
                SellerDateTimePicker.Value = DateTime.Now;
            else
                SellerDateTimePicker.Value = DateTime.Parse(sellerDate);
        }

        public string SellerOrderID
        {
            get { return SellerOrderIDTextBox.Text; }
        }

        public DateTime SellerDate
        {
            get { return SellerDateTimePicker.Value; }
        }
    }
}
